﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TodayTip.aspx.cs" Inherits="ZLDC.Estate.Page.TodayTip" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>今日提醒</title>
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
    <link href="Css/default.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="js/themes/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="js/themes/icon.css" />

    <script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>

    <script type="text/javascript" src="js/jquery.easyui.min.1.2.2.js"></script>

    <script src="../js/LexunJS.js" type="text/javascript"></script>

    <script type="text/javascript" language="javascript">
        var f = LexunJS.GetQueryString("f"); // 是否自动关闭0为自动关闭,1为不关闭
        var isFinished = 0; //是否加载完成，业务员加载完成值是3,经理以上是7
        var isalert = 0; //控制弹出是否自动关闭
        function ShowAlert() {
            $("#div4_1").html(""); // 清空
            $("#div4_1").html("<img src=\"../images/loading.gif\" />"); // 清空列表
            $.ajax({
                type: 'POST',
                url: '../Handler/HandlerAlert.ashx',
                data: 'act=housingalert',
                timeout: '10000',
                error: function() {
                    $("#div4_1").html("<font>获取数据失败！</font>");
                    ShowAlert1();
                },
                success: function(json) {
                    ShowAlertCallBack(json);
                    ShowAlert1();
                }
            });
        }
        function ShowAlertCallBack(response) {
            isFinished = isFinished + 1;
            if (response == "") { $("#div4_1").html(""); return };
            var json = eval("(" + response + ")");
            var record = json.record;
            var record1 = json.record1;
            var record2 = json.record2;
            var record3 = json.record3;
            if ((record == null || record.length == 0) && (record1 == null || record1.length == 0) && (record2 == null || record2.length == 0)) {
                $("#div4_1").html("<font>没有盘源提醒数据！</font>"); // 清空列表
                autoclose();
                return;
            }
            isalert = 1;
            $("#div4_1").html("");
            var arr = [];
            arr.push("<table id='table1' width='100%' border='0' cellpadding='0' cellspacing='1'>");
            arr.push("<tr><td ><font>你的盘源将转为资料盘,请及时跟进!编号如下:</font></td></tr><tr><td  class='STYLE6'>");
            if (record.length == 0) arr.push("<font>无</font>");

            var hstateId_list = "";
            for (var i = 0; i < record.length; i++) {
                hstateId_list += record[i].id;
                if (i < record.length - 1)
                    hstateId_list += ",";
                
                
                arr.push("<a href='javascript:showHousingDialog(\"" + record[i].id + "\", 3,1);'>" + record[i].id + "</a> ");
            }
            $("#hState_1").val(hstateId_list);
            arr.push("</td></tr>");
            arr.push("<tr><td ><font>你的盘源被标无效或者价钱为10万以下,请及时处理!编号如下:</font></td></tr><tr><td  class='STYLE6'>");
            if (record2.length == 0) arr.push("<font>无</font>");

            hstateId_list = "";
            for (var i = 0; i < record2.length; i++) {

                hstateId_list += record2[i].id;
                if (i < record2.length - 1)
                    hstateId_list += ",";
                    
                arr.push("<a href='javascript:showHousingDialog(\"" + record2[i].id + "\", 3,2);'>" + record2[i].id + "</a> ");
            }
            $("#hState_2").val(hstateId_list);
            
            
            arr.push("</td></tr>");

            arr.push("<tr><td ><font>你的盘源被举报,请及时跟进!编号如下:</font></td></tr><tr><td  class='STYLE6'>");
            if (record1.length == 0) arr.push("<font>无<font>");

            hstateId_list = "";
            for (var i = 0; i < record1.length; i++) {
                hstateId_list += record1[i].id;
                if (i < record1.length - 1)
                    hstateId_list += ",";
            
                arr.push("<a href='javascript:showHousingDialog(\"" + record1[i].id + "\", 7,3);'>" + record1[i].id + "</a> ");
            }
            $("#hState_3").val(hstateId_list);

            arr.push("</td></tr>");

            arr.push("<tr><td ><font>您的租盘，价格低于100,请及时处理!编号如下:</font></td></tr><tr><td  class='STYLE6'>");
            if (record3.length == 0) 
                 arr.push("<font>无<font>");

            hstateId_list = "";
            for (var i = 0; i < record3.length; i++) {
                hstateId_list += record3[i].id;
                if (i < record3.length - 1)
                    hstateId_list += ",";

                arr.push("<a href='javascript:showHousingDialog(\"" + record3[i].id + "\", 3,7);'>" + record3[i].id + "</a> ");
            }
            $("#hState_7").val(hstateId_list);

            arr.push("</td></tr>");
            
            arr.push("</table>");
            $("#div4_1").html(arr.join('')); // 显示列表

        }
        function ShowAlert1() {
            $("#div4_2").html(""); // 清空
            $("#div4_2").html("<img src=\"../images/loading.gif\" />"); // 清空列表
            $.ajax({
                type: 'POST',
                url: '../Handler/HandlerAlert.ashx',
                data: 'act=customeralert',
                timeout: '10000',
                error: function() {
                    $("#div4_2").html("<font>获取数据失败！</font>");
                    ShowAlert2();
                },
                success: function(json) {
                    ShowAlertCallBack1(json);
                    ShowAlert2();
                }
            });
        }
        function ShowAlertCallBack1(response) {
            isFinished = isFinished + 1;
            if (response == "") { $("#div4_2").html(""); return };
            var json = eval("(" + response + ")");
            var record = json.record;
            if (record == null || record.length == 0) {
                $("#div4_2").html("<font>没有客源提醒数据！</font>"); // 清空列表
                autoclose();
                return;
            }

            $("#div4_2").html("");
            var arr = [];
            var cStateId_list = "";
            arr.push("<table id='table1' width='100%' border='0' cellpadding='0' cellspacing='1'>");
            arr.push("<tr><td ><font>下列你的私客将转为公客,请及时跟进!!编号:</font></td></tr><tr><td  class='STYLE6'>");
            for (var i = 0; i < record.length; i++) {
                cStateId_list += record[i].id;
                if (i < record.length - 1)
                    cStateId_list += ",";
                    
                arr.push("<a href='javascript:showCustomerDialog(\""+record[i].id+"\",0,1);'>" + record[i].id + "</a> ");
            }
            $("#cState_1").val(cStateId_list);

            arr.push("</td></tr>");
            arr.push("</table>");
            $("#div4_2").html(arr.join('')); // 显示列表
            isalert = 1;

        }

        //查询提醒信息
        function ShowAlert2() {
            $("#div4_3").html(""); // 清空
            $("#div4_3").html("<img src=\"../images/loading.gif\" />"); // 清空列表
            $.ajax({
                type: 'POST',
                url: '../Handler/HandlerAlert.ashx',
                data: 'act=todayalert&page=1&pagesize=5',
                timeout: '10000',
                error: function() {
                    $("#div4_3").html("<font>获取数据失败！</font>");
                    ShowNews(1);
                },
                success: function(json) {
                    ShowAlertCallBack2(json);
                    ShowNews(1);
                }
            });
        }

        function ShowAlertCallBack2(response) {
            isFinished = isFinished + 1;
            if (response == "") {
                $("#div4_3").html("");
                autoclose();
                return
            };
            var json = eval("(" + response + ")");
            var record = json.record;

            var page = json.page;

            currentPage = page.currentpage;
            pageall = parseInt(page.pageall);
            total = page.total;
            if (record == null || record.length == 0) {
                $("#div4_3").html("<font>没有提醒数据！</font>");
                autoclose();
                return;
            }

            $("#div4_3").html("");
            var arr = [];
            arr.push("<table id='table1' width='100%' border='0' cellpadding='0' cellspacing='1' bgcolor='#a8c7ce'>");
            arr.push("<thead>");
            arr.push("<tr >");
            arr.push("<th  height='25'   width='50'  class='STYLE6'>");
            arr.push("人员</th>");
            arr.push("<th height='25'  width='100'  class='STYLE6'>");
            arr.push("部门</th>");
            arr.push("<th height='25'  width='150'  class='STYLE6'>");
            arr.push("提醒时间</th>");
            arr.push("<th height='25' width='150'  class='STYLE6'>");
            arr.push("提醒类型</th>");
            arr.push("<th height='25'  width='200'  class='STYLE6'>");
            arr.push("提醒内容</th>");
            arr.push("<th height='25'  width='200'  class='STYLE6'>");
            arr.push("处理</th>");
            arr.push("</tr>");
            arr.push("</thead>");

            for (var i = 0; i < record.length; i++) {
                if (i % 2 == 0)
                    arr.push("<tr id='tr_" + i + "' bgcolor='#FFFFFF' >");
                else
                    arr.push("<tr id='tr_" + i + "' bgcolor='#EEEDED' >");

                arr.push("<td height='25' bgcolor='FFFFFF' class='STYLE10'>");
                arr.push("" + record[i].adduser + "</td>");
                arr.push("<td height='25' bgcolor='FFFFFF' class='STYLE10'>");
                arr.push("" + record[i].adddept + "</td>");
                arr.push("<td height='25' bgcolor='FFFFFF' class='STYLE10'>");
                arr.push("" + record[i].alertdate + "</td>");
                arr.push("<td height='25' bgcolor='FFFFFF' class='STYLE10'>");
                arr.push("" + record[i].alerttype + "</td>");
                arr.push("<td height='25' bgcolor='FFFFFF' class='STYLE10'>");
                arr.push("" + record[i].alertcontent + "</td>");
                arr.push("<td height='25' bgcolor='FFFFFF' class='STYLE10'>");
                if (record[i].type == '1') {
                    arr.push("<a href='javascript:showHousingDialog(\"" + record[i].housingid + "\", 8);'>查看</a>");
                }
                else if (record[i].type == '2') {
                    arr.push("<a href='javascript:showCustomerDialog(\"" + record[i].housingid + "\", 4);'>查看</a>");
                }

                arr.push("</td>");
                arr.push("</tr>");
            }
            arr.push("<tr><td bgcolor='FFFFFF' class='STYLE10' colspan='6' ><a href=\"../TM/AlertManager.aspx?type=1\" title=\"每日提醒\" >更多...</a></td></tr>");
            arr.push("</table>");
            $("#div4_3").html(arr.join('')); // 显示列表
            isalert = 1;
        }


        function ShowNews(typeid) {
            $("#div4_4").html(""); // 清空
            $("#div4_4").html("<img src=\"../images/loading.gif\" />"); // 清空列表
            $.ajax({
                type: 'POST',
                url: '../Handler/HandlerSystem.ashx',
                data: 'act=p_news_list&typeid=' + typeid + '',
                timeout: '10000',
                error: function() {
                $("#div4_4").html("<font>获取数据失败！</font>");
                ShowKeyList();
                },
                success: function(json) {
                ShowNewsCallBack(json);
                ShowKeyList();
                }
            });



        }
        function ShowNewsCallBack(response) {
            if (response == "") { $("#div4_4").html(""); return };
            var json = eval("(" + response + ")");
            var record = json.record;
            if (record == null || record.length == 0) {
                $("#div4_4").html("<font>没有公告数据！</font>"); // 清空列表
                return;
            }
            $("#div4_4").html("");

            var arr = [];

            arr.push("<fieldset>");
            arr.push("<legend><span style='filter: shadow(color=ffedff);'>公告信息</span></legend>");
            arr.push("<div  id='divNewS' class='divFinanContents'>");
            arr.push("<table border='0' cellpadding='0' cellspacing='0' style='width: 100%'>");
            for (var i = 0; i < record.length; i++) {
                arr.push("<tr onclick=\"openNewsDetail('" + record[i].id + "')\" onmouseover=\"this.style.backgroundColor = '#0000ff';\" onmouseout=\"this.style.backgroundColor = '';\"> ");
                arr.push(" <td style='height:22px;color:#0000ff;cursor:hand;' onmouseover=\"this.style.color = '#ffffff';\" onmouseout=\"this.style.color = '#0000ff';\" >");
                arr.push("·" + record[i].pubdate + "]" + record[i].title + "");
                arr.push("</td>");
                arr.push("</tr>");
            }
            arr.push("<tr onclick=\"ShowNews('1')\" onmouseover=\"this.style.backgroundColor = '#0000ff';\" onmouseout=\"this.style.backgroundColor = '';\"> ");
            arr.push(" <td style='height:22px;color:#0000ff;cursor:hand;' onmouseover=\"this.style.color = '#ffffff';\" onmouseout=\"this.style.color = '#0000ff';\" >");
            arr.push("·更多");
            arr.push("</td>");
            arr.push("</tr>");
            arr.push("</table>");
            arr.push("</div>");
            arr.push("</fieldset>");

            $("#div4_4").html(arr.join('')); // 显示列表
        }


        // 查看详情
        function openNewsDetail(id) {
            var url = "../TM/NewsDetails.aspx?id=" + id;
            var style = "left = 50, screenX = 0, top = 50, screenY = 0, resizable = yes, scrollbars = yes,width=750px, height=450px,Toolbar=no,Location=no,Direction=no,Resizeable=no";
            var parameter = "查看公告";
            window.open(url, parameter, style);
        }

        // 弹出窗口,查看某匹配出的房源详细
        function showHousingDialog(id, tagNo,typeId) {
            if (tagNo == null) {
                tagNo = 3;
            }
            var id_list ="";
            if (typeId == "1") {
                id_list = $("#hState_1").val();
            }
            else if (typeId == "2") {
                id_list = $("#hState_2").val();
            }
            else if (typeId == "3") {
                id_list = $("#hState_3").val();
            }
            else if (typeId == "4") {
                id_list = $("#hState_4").val();
            }
            else if (typeId == "5") {
                id_list = $("#hState_5").val();
            }
            else if (typeId == "6") {
                id_list = $("#hState_6").val();

            }
            else if (typeId == "7") {
              id_list = $("#hState_7").val();
             
            }
            
            var path = "../PM/HousingDetail.aspx?id=" + id + "&tagNo=" + tagNo+ "&id_list=" + escape(id_list);
            var parameter = "盘源详情";

            var style = "left = 50, screenX = 0, top = 50, screenY = 0, resizable = yes, scrollbars = yes,width=750px, height=450px,Toolbar=no,Location=no,Direction=no,Resizeable=no";
            window.open(path, parameter, style);
        }

        // 弹出窗口
        function showCustomerDialog(id, tagNo,typeid) {
            if (tagNo == null) {
                tagNo = 2;
            }
            var id_list = "";
            
            if (typeid == "1") {
                id_list = $("#cState_1").val();
            }

            var path = "../CM/CustomerDetail.aspx?id=" + id + "&tagNo=" + tagNo + "&id_list=" + escape(id_list);
            var parameter = "客源详情";
            var style = "left = 50, screenX = 0, top = 50, screenY = 0, resizable = yes, scrollbars = yes,width=750px, height=450px,Toolbar=no,Location=no,Direction=no,Resizeable=no";
            window.open(path, parameter, style);

        }



        // 条件查询资源列表
        function showCheckList(typeid) {// 1上盘审核 2转盘审核    
            var name = "";             // 楼盘名称
            var roomno = "";               // 房号
            var hid = "";               // 盘源编号

            $("#div4_5").html(""); // 清空
            $("#div4_5").html("<img src=\"../images/loading.gif\" />"); // 清空列表 
            $.ajax({
                type: 'POST',
                url: '../Handler/HandlerCheck.ashx',
                data: 'act=housing_checklist&page=1&pagesize=5&typeid=' + typeid + '&name=' + name + '&roomno=' + roomno + '&id=' + hid,
                timeout: '10000',
                error: function() {
                $("#div4_5").html("<font color='red'>&nbsp;获取数据失败!</font>");
                var station = document.getElementById("hStation").value;
                if (station != "") {
                    showCheckList2(2);
                }

                }, success: function(json) {
                    ChecklistCallBack(json);
                    var station = document.getElementById("hStation").value;
                    if (station != "") {
                        showCheckList2(2);
                    }
                }
            });
        }

        function ChecklistCallBack(response) {
            isFinished = isFinished + 1;
            var json = eval("(" + response + ")");
            var record = json.record;

            if (record == null || record.length == 0) {
                $("#div4_5").html("<font color='red'>&nbsp;系统内暂无上盘待审盘源!</font>");
                autoclose();
                return;
            }
            isalert = 1;
            var arr = [];

            arr.push("<div class='page' ><font color='red'>系统内有上盘待审盘源，请及时处理！</font><a href=# />提示：请点击盘源信息管理-->待审盘源，进行处理</a></div>");

            $("#div4_5").html(arr.join(''));

        }

        // 条件查询资源列表
        function showCheckList2(typeid) {// 1上盘审核 2转盘审核    
            var name = "";             // 楼盘名称
            var roomno = "";               // 房号
            var hid = "";               // 盘源编号

            $("#div4_8").html(""); // 清空
            $("#div4_8").html("<img src=\"../images/loading.gif\" />"); // 清空列表 
            $.ajax({
                type: 'POST',
                url: '../Handler/HandlerCheck.ashx',
                data: 'act=housing_checklist&page=1&pagesize=5&typeid=' + typeid + '&name=' + name + '&roomno=' + roomno + '&id=' + hid,
                timeout: '10000',
                error: function() {
                $("#div4_8").html("<font color='red'>&nbsp;获取数据失败!</font>");
                var station = document.getElementById("hStation").value;
                if (station != "") {
                    showCustomerList();
                }

                }, success: function(json) {
                ChecklistCallBack2(json);
                var station = document.getElementById("hStation").value;
                if (station != "") {
                    showCustomerList();
                }

                }
            });
        }

        function ChecklistCallBack2(response) {
            isFinished = isFinished + 1;
            var json = eval("(" + response + ")");
            var record = json.record;

            if (record == null || record.length == 0) {
                $("#div4_8").html("<font color='red'>&nbsp;系统内暂无转盘待审盘源!</font>");
                autoclose();
                return;
            }
            isalert = 1;
            var arr = [];

            arr.push("<div class='page' ><font color='red'>系统内有转盘待审盘源，请及时处理！</font><a href=# />提示：请点击盘源信息管理-->待审盘源，进行处理</a></div>");

            $("#div4_8").html(arr.join(''));

        }



        // 条件查询资源列表
        function showCustomerList() {
            var CustName = ""; //客户姓名
            var CustId = ""; //客户ID

            $("#div4_6").html("<img src=\"../images/loading.gif\" />"); // 清空列表
            $("#div4_6").html(""); // 清空列表 

            $.ajax({
                type: 'POST',
                url: '../Handler/HandlerCustomer.ashx',
                data: 'act=CustomerCheckListAction&page=1&pagesize=5&custname=' + CustName + '&custid=' + CustId,
                timeout: '20000',
                error: function() {
                $("#div4_6").html("<font color='red'>&nbsp;获取数据失败!</font>");
                var station = document.getElementById("hStation").value;
                if (station != "") {
                    showCustomerChangeList();
                }

                }, success: function(json) {
                CustomerlistCallBack(json);
                var station = document.getElementById("hStation").value;
                if (station != "") {
                    showCustomerChangeList();
                }

                }
            });
        }

        /*
        功能: 将返回的json数据进行排版
        json: json数据
        */
        function CustomerlistCallBack(response) {
            isFinished = isFinished + 1;
            var json = eval("(" + response + ")");
            var record = json.record;

            if (record == null || record.length == 0) {
                $("#div4_6").html("<font color='red'>&nbsp;系统内暂无待审客源!</font>");
                autoclose();
                return;
            }

            isalert = 1;
            $("#div4_6").html("<div class='page' ><font color='red'>系统内有待审客源，请及时处理！</font><a href=# />提示：请点击客源信息管理-->转客审核，进行处理</a></div>");

        }

        function showCustomerChangeList() {
            $("#divList").html("<img src=\"../images/loading.gif\" />"); // 清空列表 
            $.ajax({
                type: 'POST',
                url: '../Handler/HandlerCustomer.ashx',
                data: 'act=customerchangecheck_list&page=1&pagesize=5',
                timeout: '20000',
                error: function() {
                    $("div4_7").html("<font>获取数据失败，请稍候再试！</font>");
                }, success: function(json) {
                    CustChangelistCallBack(json);
                }
            });
        }

        /*
        功能: 将返回的json数据进行排版
        json: json数据
        */

        function CustChangelistCallBack(response) {
            isFinished = isFinished + 1;
            var json = eval("(" + response + ")");
            var record = json.record;

            if (record == null || record.length == 0) {
                $("#div4_7").html("<font color='red'>系统内暂无转介客确认信息!</font>");
                autoclose();
                return;
            }
            isalert = 1;
            $("#div4_7").html("<font color='red'>系统内有转介客确认信息，请及时处理！</font><a href=# />提示：请点击客源信息管理-->转介客确认，进行处理</a>");
        }

        function autoclose() {
            if (f == 0) {
                var station = document.getElementById("hStation").value;
                if (station != "") {
                    if (isFinished == 7 && isalert == 0) {
                        window.close();
                    }
                } else {
                    if (isFinished == 3 && isalert == 0) {
                        window.close();
                    }
                }
            }

        }

        ///修改 钥匙，独家 信息提醒
        function ShowKeyList() {


            $("#divKey").html("<img src=\"../images/loading.gif\" />"); // 清空列表 
            $.ajax({
                type: 'POST',
                url: '../Handler/HandlerAlert.ashx',
                data: 'act=KeyOrclusiveList',
                timeout: '20000',
                error: function() {
                $("divKey").html("<font>获取数据失败，请稍候再试！</font>");
                ShowCommendList()
                }, success: function(json) {
                KeylistCallBack(json);
                ShowCommendList()
                }
            });
        }


        function KeylistCallBack(response) {
            var json = eval("(" + response + ")");
            var record = json.record;


            if (record == null || record.length == 0) {
                $("#divKey").html(""); // 清空列表
                autoclose();
                return;
            }
            isalert = 1;

            $("#divKey").html("");
            var arr = [];
            arr.push("<table id='table1' width='100%' border='0' cellpadding='0' cellspacing='1'>");
            arr.push("<tr><td ><font>下列钥匙已被修改,编号如下:</font></td></tr><tr><td  class='STYLE6'>");
            if (record.length == 0) arr.push("");

            var hstateId_list = "";

            for (var i = 0; i < record.length; i++) {
                if (record[i].type == "1") {
                    hstateId_list += record[i].hid+",";
                   

                    arr.push("<a href='javascript:showHousingDialog(\"" + record[i].hid + "\", 3,4);'>" + record[i].hid + "</a> ");
                }
            }
            if (hstateId_list.length > 0)
                hstateId_list = hstateId_list.substr(0, hstateId_list.length - 1);
            $("#hState_4").val(hstateId_list);

            arr.push("</td></tr>");
            hstateId_list = "";
            arr.push("<tr><td ><font>下列独家已被修改,编号如下:</font></td></tr><tr><td  class='STYLE6'>");
            for (var i = 0; i < record.length; i++) {
                if (record[i].type == "2") {
                    hstateId_list += record[i].hid+",";
                   
                        
                    arr.push("<a href='javascript:showHousingDialog(\"" + record[i].hid + "\", 3,5);'>" + record[i].hid + "</a> ");
                }
            }
            if (hstateId_list.length > 0)
                hstateId_list = hstateId_list.substr(0, hstateId_list.length - 1);
            $("#hState_5").val(hstateId_list);

            
            arr.push("</td></tr>");
            arr.push("</table>");
            $("#divKey").html(arr.join('')); // 显示列表

        }

        ///笋盘提醒
        function ShowCommendList() {


            $("#divCommend").html("<img src=\"../images/loading.gif\" />"); // 清空列表 
            $.ajax({
                type: 'POST',
                url: '../Handler/HandlerAlert.ashx',
                data: 'act=SelectCommendHousingList',
                timeout: '20000',
                error: function() {
                $("divCommend").html("<font>获取数据失败，请稍候再试！</font>");
                            var station = document.getElementById("hStation").value;
                            if (station != "") {
                               showCheckList(1);
                            }
                }, success: function(json) {
                    ComendListCallBack(json);
                    var station = document.getElementById("hStation").value;
                    if (station != "") {
                        showCheckList(1);
                    }
                }
            });
        }

        function ComendListCallBack(response) {
            var json = eval("(" + response + ")");
            var record = json.record;
            if (record == null || record.length == 0) {
                $("#divCommend").html(""); // 清空列表
                autoclose();
                return;
            }
            isalert = 1;
            $("#divCommend").html("");
            var arr = [];
            arr.push("<table id='table2' width='100%' border='0' cellpadding='0' cellspacing='1'>");
            arr.push("<tr><td ><font>下列笋盘已超过5天!编号如下:</font></td></tr><tr><td  class='STYLE6'>");
            if (record.length == 0) arr.push("");

            var hstateId_list = "";
            for (var i = 0; i < record.length; i++) {
                hstateId_list += record[i].housingid;
                if (i < record.length - 1)
                    hstateId_list += ",";
                    
                arr.push("<a href='javascript:showHousingDialog(\"" + record[i].housingid + "\", 3,6);'>" + record[i].housingid + "</a> ");
            }
            $("#hState_6").val(hstateId_list);

            arr.push("</td></tr>");
            arr.push("</table>");
            $("#divCommend").html(arr.join('')); // 显示列表
        }



        // 读取列表
        $(function() {
            ShowAlert();
            //            ShowAlert1();
            //            ShowAlert2();
            //            ShowNews(1);
            //            ShowKeyList();
            //            ShowCommendList();
            //            var station = document.getElementById("hStation").value;
            //            if (station != "") {
            //                showCheckList(1);
            //                showCheckList2(2);
            //                showCustomerList();
            //                showCustomerChangeList();
            //            } else {
            //                $("#div1")[0].style.display = "none";
            //                $("#div2")[0].style.display = "none";
            //                $("#div3")[0].style.display = "none";
            //}
            var station = document.getElementById("hStation").value;
            if (station =='') {
                $("#div1")[0].style.display = "none";
                $("#div2")[0].style.display = "none";
                $("#div3")[0].style.display = "none";
                $("#div4_6")[0].style.display = "none";
                $("#div4_7")[0].style.display = "none";
                $("#div4_5")[0].style.display = "none";
                $("#div4_8")[0].style.display = "none";
            }

        });



    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div class="f_l rqieh">
            盘源提醒</div>
        <br />
        <div id="div4_1" class="page">
        <img src="../images/loading.gif" />
        </div>
        <div id="divKey" class="page">
        <img src="../images/loading.gif" />
        </div>
        <div id="divCommend" class="page">
        <img src="../images/loading.gif" />
        </div>
        <div id="divLease" class="page">
                <img src="../images/loading.gif" />
        </div>
        <div class="f_l rqieh">
            客源提醒</div>
        <br />
        <div id="div4_2" class="page">
        <img src="../images/loading.gif" />
        </div>
        <div class="f_l rqieh">
            每日提醒</div>
        <br />
        <div id="div4_3" class="page">
        <img src="../images/loading.gif" />
        </div>
        <div id="div1" class="f_l rqieh">
            待审盘源提醒</div>
        <br />
        <div id="div4_5" class="page">
        <img src="../images/loading.gif" />
        </div>
        <div id="div4_8" class="page">
       <img src="../images/loading.gif" />
        </div>
        <div id="div2" class="f_l rqieh">
            待审客源提醒</div>
        <br />
        <div id="div4_6" class="page">
        <img src="../images/loading.gif" />
        </div>
        <div id="div3" class="f_l rqieh">
            转介客提醒</div>
        <br />
        <div id="div4_7" class="page">
        <img src="../images/loading.gif" />
        </div>
        <div class="f_l rqieh">
            系统公告</div>
        <br />
        <div id="div4_4" class="page">
       <img src="../images/loading.gif" />
        </div>
    </div>
    <input id="hStation" runat="server" type="hidden" />
    <input id="hState_1"  type="hidden" />
    <input id="hState_2"  type="hidden" />
    <input id="hState_3"  type="hidden" />
    <input id="hState_4"  type="hidden" />
    <input id="hState_5"  type="hidden" />
    <input id="hState_6"  type="hidden" />
    <input id="cState_1"  type="hidden" />
    <input id="cState_2"  type="hidden" />
    <input id="hState_7"  type="hidden" />
    
    </form>
</body>
</html>
